Introduction to JVM Languages by Vincent van der Leun

Introduction to JVM Languages by Vincent van der Leun

Author:Vincent van der Leun [Leun, Vincent van der]
Language: eng
Format: azw3, pdf
Tags: COM051000 - COMPUTERS / Programming / General, COM051280 - COMPUTERS / Programming Languages / Java
Publisher: Packt Publishing
Published: 2017-06-28T04:00:00+00:00


Scala IDE will now create the class and package; it will generate the following code (some empty lines removed):

package akkaquote.actor

class QuotesHandlerActor {

}

Place the cursor after QuotesHandlerActor, add a space, type extends Actor, and press Ctrl + Space bar. Scala IDE will show a list with the suggested class names:

Select the Actor class from the akka.actor package and press Enter. Scala IDE will automatically add the corresponding import statement.

This class will hold the quotes, so let's implement a mutable list. Inside the class's body, type val quotes = new ListB and press Ctrl + Space bar. Move the cursor to ListBuffer (scala.collections.mutable) and press Enter:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.